﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FirstWebForm.aspx.vb" Inherits="MyFirstVbApplication.FirstWebForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 50%;
        }
    </style>
</head>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>

<script>
    $(function () {

        $("#TextBox1").keypress(function () {

           // alert($("#TextBox1").val());
            $("#Label2").text($("#TextBox1").val());
        });
    });
</script>
<body text="Testing">
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td>
                    <table class="style1">
                        <tr> 
                            <td>
                                <table class="style1">
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label1" runat="server" Text="UserName"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Testing"></asp:Label>
                            </td>
                            <td>
                                <asp:Button ID="Button1"  runat="server" Text="Change" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
